package com.ziroom.crm.mq.test;

import com.ziroom.crm.mq.core.retry.RetryContext;
import com.ziroom.crm.mq.core.retry.RetryFinishCallBack;

public class FinishNotice implements RetryFinishCallBack {

    @Override
    public void fail(RetryContext context) {
        System.out.println("\n重试彻底失败：id=" + context.getMessage().getId() + ",RetryType=" + context.getRetryType()
                + ",RetryCount=" + context.getRetryCount());
    }

    @Override
    public void success(RetryContext context) {
        System.out.println("\n重试成功：id=" + context.getMessage().getId() + ",RetryType=" + context.getRetryType()
                + ",RetryCount=" + context.getRetryCount());
    }

}
